package com.example.back.jpa;

import com.example.common.entity.BlacklistIp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface BlacklistIpRepository extends JpaRepository<BlacklistIp,Long> {

    /**
     * 根据IP查找是否禁用
     * @param iPAddress
     * @return
     */
    BlacklistIp findByIpAddress(String iPAddress);

}
